 // pages/particulars-new/particulars-new.js
 var app = getApp();
 var com = require('../../common.js');
 var utils = require('../../utils/util.js')
 Page({
   data: {
     id: '',
     info: {}
   },
   onLoad: function(options) {
     console.log(options)
     this.setData({
       id: options.id
     })
     this.onCounponInfo()
   },
   onReady: function() {},
   onShow: function() {},
   onHide: function() {},
   onUnload: function() {},
   onPullDownRefresh: function() {},
   onReachBottom: function() {},
   // onShareAppMessage: function() {},
   onCounponInfo() {
     var Б = this,
       id = Б.data.id,
       url = app.link.orderCentent + id + '.st'
     com.link(url, {}, function(rep) {
       console.log(rep);
       for (let i in rep.data.data.reminds) {
         rep.data.data.reminds[i].create_time = utils.formatTime(rep.data.data.reminds[i].create_time * 1000)
       }
       Б.setData({
         info: rep.data.data
       })
     }, 'GET')

   },
   codeList: function(e) {
     let index = e.currentTarget.dataset.index;
     let _this = this
     if (index == 0) {
       wx.navigateTo({
         url: '../orderdeliver/orderdeliver?id=' + e.currentTarget.id,
       })
     }
     if (index == 1) {
       wx.navigateTo({
         url: '/pages/logistics/logistics?id=' + e.currentTarget.id,
       })
     }
     if (index == 2) {
       wx.navigateTo({
         url: '../logistics/logistics?id=' + e.currentTarget.id,
       })
     }
   },
 })